package com.example.study_thread.e_pool;

public class MyRunnable implements Runnable{
    @Override
    public void run() {
        int sum = 0;
        for (int i = 0; i <= 100; i++) {
            sum += i;
        }
        System.out.println("1-100求和结果为:" + sum);
        System.out.println(Thread.currentThread().getName() + " is running");;
    }
}
